-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Doctrine integration Fix #146, #152 #149
Improve Doctrine integration Fix #146, #152 #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments. This is really great work!
$this->fileManager = $fileManager; | ||
$this->generator = $generator; | ||
$this->projectDirectory = $projectDirectory; | ||
$this->overwrite = $overwrite; | ||
$this->metadataFactory = new DoctrineMetadataFactory($this->doctrineRegistry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DoctrineMetadataFactory
calls should be deleted entirely now, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, and DoctrineMetadataFactory class too I think
src/Doctrine/DoctrineHelper.php
Outdated
* | ||
* @throws \Exception | ||
*/ | ||
public function createDoctrineDetails(string $entityClassName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use a return type here instead of @returns
src/Doctrine/DoctrineHelper.php
Outdated
return $entities; | ||
} | ||
|
||
public function getMetadata(string $classOrNamespace = null, bool $disconnected = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a return type here too
/** | ||
* @ORM\Column(type="string", length=255) | ||
*/ | ||
private $ingridients; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: ingredients
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops :)
420f8f1
to
7b8ac42
Compare
Very nice, very careful work. Thank you @sadikoff! |
@weaverryan I think this introduced a bug: Undefined class constant 'ONE_TO_MANY' |
This will close #146
in progress...